package cn.wuxing.mediation.web.controller.infoconfig;

import cn.wuxing.mediation.common.core.domain.AjaxResult;
import cn.wuxing.mediation.infoconfig.service.IIcTownshipCenterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: <描述>
 * @date: 2024/10/17 16:04
 * @author: yang
 * @version: 1.0
 */
@RestController
@RequestMapping("/infoconfig/townshipcenter")
public class IIcTownshipCenterController {

    @Autowired
    private IIcTownshipCenterService iIcTownshipCenterService;

    /**
     * 获取调解委员会树列表
     */
    @GetMapping("/treeDownDrop")
    public AjaxResult treeDownDrop(String name) {
        return AjaxResult.success(iIcTownshipCenterService.selectTreeList(name));
    }
}
